<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

$app->get('/', function () use ($app)  {
    return $app->welcome();
});



$app->get('/status','ClientController@getStatus'); //获取服务器状态
$app->post('/login','ClientController@postLogin'); //用户登录
$app->get('/reg','ClientController@reg'); //用户注册地址
$app->get('/website','ClientController@website'); //官网地址
$app->get('/about','ClientController@about'); //关于我们

$app->get('/nav','ClientController@nav'); //导航栏目
$app->get('/type/2/category', 'ClientController@getCategory');//获取分类
$app->get('/type/1/style', 'ClientController@getStyle');//获取模型风格
$app->get('/type/1/format', 'ClientController@getFormat');//获取版本
$app->get('/type/{type}/list', 'ClientController@getList');//获取模型/材质/灯光/脚本/贴图/CAD内容




